import React from 'react';
import Dialog from "./components/Dialog";

export default class HelpDialog extends React.Component {
	 randomChoice = (arr) =>{
 		return arr[Math.floor(Math.random() * arr.length)];
	}
    render() {
		let titles = ["Monooly", "Monopoply", "Librepoly", "Vamo a la playapoly", "Venenopoly", "*poly"];
		let title = this.randomChoice(titles);
        return (<Dialog dismiss={this.props.dismiss} actions={[{name: 'Close', click: this.props.dismiss}]}>
			<h1> {title}</h1>
				
            <p>Welcome to a free software online Monopoly game !</p>
            <p>This game is based on lamarios monopoly. Repo of <a href="https://notabug.org/alkeon/librepoply">librepoply</a>.</p>
			<p> This version makes some usual actions automatic. </p>
			<p> Some things are still manual </p>
				<ul>
				<li> Community and chance. Collect and pay things have to be done with send a receive money</li>
				<li> Jail </li>
				<li> End turn </li>
				</ul>
			<p> TO-DO
				<ul>
				<li> Make functional chance and community (it works a bit)</li>
				<li> Make better code for prison </li>
				<li> Cleanup code	</li>
				</ul>
			</p>
			

        </Dialog>);
    }
}
